﻿using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace RealDataReceiver.Entities
{
    public class AlarmMetaData
    {
        [BsonRepresentation(BsonType.ObjectId)]
        [BsonId]
        public string Id { get; set; }
        public string Key { get; set; }
        /// <summary>
        /// A: Active
        /// D: Delete. means relieve
        /// </summary>
        public string Status { get; set; }
        public string AlarmId { get; set; }
        public string LocationId { get; set; }
        public string LocationName { get; set; }
        public string DeviceId { get; set; }
        public string DeviceName { get; set; }
        public string PropertyId { get; set; }
        public string PropertyName { get; set; }
        public string AlarmType { get; set; }
        public string Level { get; set; }
        public string Description { get; set; }
        public DateTime UpdateTime { get; set; }
        public string IP { get; set; }
    }
}
